package com.miao.hong.fang.teacher.service;

import com.miao.hong.fang.teacher.TeacherTO;
import com.miao.hong.fang.teacher.dao.TeacherDAO;
import com.miao.hong.fang.util.pagination.ListAndCount;

public class TeacherServiceImpl implements TeacherService{

	private TeacherDAO teacherDAO;
	
	public void setTeacherDAO(TeacherDAO teacherDAO) {
		this.teacherDAO = teacherDAO;
	}
	
	public TeacherTO getTeacherDetail(String teacherId) {
		return teacherDAO.getTeacherDetail(teacherId);
	}
	
	public ListAndCount getAllTeacher(String category) {
		return teacherDAO.getAllTeacher(category);
	}
		
}
